package com.dingwen.treasure.open.api.baidu.map.service;

import com.dingwen.treasure.open.api.baidu.map.bo.WeatherBo;

/**
 * 百度地图服务
 *
 * @author dingwen
 * @date 2022/12/29
 */
public interface BaiduMapService {
    String DATA_TYPE_KEY = "data_type";
    String AK_KEY = "ak";
    String DISTRICT_ID_KEY = "district_id";
    String RESULT_KEY = "result";
    String CITY_KEY = "city";
    String NAME_KEY = "name";
    String FORECASTS_KEY = "forecasts";
    String TEXT_DAY_KEY = "text_day";
    String HIGH_KEY = "high";
    String LOW_KEY = "low";
    String LOCATION_KEY = "location";
    String STATUS_KEY = "status";
    Integer STATUS_SUCCESS = 0;

    /**
     * 根据行政区化代码查询天气
     *
     * @param areaCode 区号
     * @return {@link WeatherBo}
     */
    WeatherBo queryWeather(String areaCode);
}
